<%@ Control Language="c#" Inherits="LocalBoard.Web.UserControls.RateArticle" CodeFile="RateArticle.ascx.cs" %>
<table class="rateArticle" border="1" cellSpacing="0" cellPadding="3" width="100%">
	<tr>
		<td width="360">
			<asp:Label ID="ratingNotAvailableLabel" Visible="False" Runat="server">Rating is not available.</asp:Label>
			<TABLE id="rateForm" class="rateArticle" cellSpacing="0" cellPadding="0" width="100%" border="0" runat="server">
				<TR>
					<TD>
						Want to rate this article?
					</TD>
				</TR>
				<tr>
					<td>
						Poor&nbsp;&nbsp;
						<asp:RadioButtonList id="rateNumbers" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
							<asp:ListItem Value="1">1</asp:ListItem>
							<asp:ListItem Value="2">2</asp:ListItem>
							<asp:ListItem Value="3">3</asp:ListItem>
							<asp:ListItem Value="4">4</asp:ListItem>
							<asp:ListItem Value="5">5</asp:ListItem>
							<asp:ListItem Value="6">6</asp:ListItem>
							<asp:ListItem Value="7">7</asp:ListItem>
							<asp:ListItem Value="8">8</asp:ListItem>
							<asp:ListItem Value="9">9</asp:ListItem>
						</asp:RadioButtonList>
						&nbsp;&nbsp;Excellent
					</td>
				</tr>
				<tr>
					<td>
						<asp:Button id="rateIt" runat="server" Text="Rate It" onclick="rateIt_Click"></asp:Button>
					</td>
				</tr>
			</TABLE>
		</td>
		<td>
			<asp:Label ID="notYetRatedLabel" Visible="False" Runat="server">This article is not yet rated.</asp:Label>
			<table id="rateDisplay" class="rateArticle" border="0" cellSpacing="0" cellPadding="0" width="100%" runat="server">
				<TBODY>
					<tr>
						<td>Average rating:<br>
							[<asp:Label ID="rating" Runat="server" />
							out of 9] <asp:Label ID="voteCount" Runat="server" /> total vote(s)
						</td>
					</tr>
					<tr>
						<td align="left" valign="top">
							<asp:Repeater ID="ratingImage" Runat="server">
								<HeaderTemplate>
									<table border="1" bordercolor="#000000" cellpadding="0" cellspacing="0" width="135">
										<tr>
											<td>
								</HeaderTemplate>
								<ItemTemplate>
									<!--asp:Image ImageUrl="~/images/rating_Bar.gif" AlternateText="rating image" Width="10" Height="15" /-->
									<img src="images/rating_Bar.gif" alt="rating image" width="10" height="10"><img src="images/rating_Bar_Empty.gif" width="1" height="10">
								</ItemTemplate>
								<FooterTemplate>
											</td>
										</tr>
									</table>
								</FooterTemplate>
							</asp:Repeater>
		</td>
	</tr>
</table></TD></TR></TBODY></TABLE>
